package com.ruoyi.oar.mapper;

import java.util.List;
import com.ruoyi.oar.domain.OarRooms;
import com.ruoyi.oar.domain.dto.OarRoomsDTO;
import com.ruoyi.oar.domain.query.OarRoomsQuery;
import java.util.Optional;
/**
 * 房间Mapper接口
 * 
 * @author ruoyi
 * @date 2022-02-17
 */
public interface OarRoomsMapper 
{
    /**
     * 查询房间
     * 
     * @param id 房间主键
     * @return 房间
     */
    public Optional<OarRooms> selectOarRoomsById(String id);

    /**
     * 查询房间列表
     * 
     * @param oarRoomsQuery 房间
     * @return 房间集合
     */
    public List<OarRooms> selectOarRoomsList(OarRoomsQuery oarRoomsQuery);

    /**
     * 新增房间
     * 
     * @param oarRooms 房间
     * @return 结果
     */
    public int insertOarRooms(OarRooms oarRooms);

    /**
     * 修改房间
     * 
     * @param oarRooms 房间
     * @return 结果
     */
    public int updateOarRooms(OarRooms oarRooms);

    /**
     * 删除房间
     * 
     * @param id 房间主键
     * @return 结果
     */
    public int deleteOarRoomsById(String id);

    /**
     * 批量删除房间
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteOarRoomsByIds(String[] ids);

    /**
     * 根据房屋删除房间
     * @param houseId
     * @return
     */
    public int deleteOarRoomsByHouseId(String houseId);

    public List<OarRooms>  selectOarRoomsByHouseId(String houseId);
}
